﻿namespace TotalApplication.Core
{
    public class ConsoleLoggers : ILogger
    {
        #region Constructor

        /// <summary>
        /// Default constructor
        /// </summary>
        public ConsoleLoggers()
        {

        }

        /// <summary>
        /// Logs the given message to the console
        /// </summary>
        /// <param name="message"></param>
        /// <param name="level"></param>
        /// <exception cref="NotImplementedException"></exception>
        public void Log(string message, LogFactoryLevel level)
        {
            Console.WriteLine($"[{DateTime.Now:yyyy-MM-dd HH:mm:ss}] [{level.ToString().PadRight(13)}] {message}");
        }

        #endregion
    }
}
